
function showfilediv() {
		if(document.getElementById("imgurl").value !="" ){
		$("#imgdiv").show();
		$("#trimgdiv").show();
		}
}






 $(function() {
           $("#imgBtn").click(function() {
					var txt = '<form   action="../information/information_preview.shtml?hotActivity=1"'
							+ 'method="post" enctype="multipart/form-data" target="tempF">'
							+ '<input name="imageFile" id="imageFile" type="file" /><input id="sub" type="submit" style="display: none" /></form>';
					function mysubmitfunc(v, m, f) {
						if(!/(.gif)|(.png)|(.jpg)|(.jpeg)|(.GIF)|(.PNG)|(.JPG)|(.JPEG)|(.IOC)|(.ico)$/.exec($("#imageFile").val())){
							 $.prompt('请上传图片格式文件',{show:'slideDown',buttons:{OK:true}})
							 return false;
						}
						$("#sub").click();
						return true;
					}
					$.prompt(txt, {
								submit : mysubmitfunc,
								buttons : {
									Ok : true
								}
							});
				})
	    $("#userinfo td").not($("#filter_ke td")).addClass("info_td1");
		$("#userinfo tr").find("td:even").not($("#filter_ke td")).addClass("title_info2");
		$("#userinfo tr").find("td:odd").not($("#filter_ke td")).css("padding-left","5px");
        });
        
 function  goback(){
		            window.location.href="history(-1)";
	}    
	
	
	
	
 function checkform(){
 
   var imgurl=  document.getElementById("imgurl").value;
    if(imgurl=="")
    {
       alert("请上传图片");
       return false;
    }
    return true;
}



function showimgdiv(obj){
   if(obj.value==2){
       document.getElementById("trimgdiv").style.display = "none";
   }else{
    document.getElementById("trimgdiv").style.display = "block";
   }
}  